<?php
session_start();
require_once('../classes/member.php');

$member = new member;
$membercheck = $member -> getAdmin($_POST['username'],$_POST['password']);

if(empty($membercheck)){
    
    header('Location: ../index.php?check=1');
}
else{
    $_SESSION['login']=1;
    header('Location: ../index.php');  
}




?>